package tk.winshu.transaction.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Kevin
 * @since 2019/04/06.
 */
@Entity
@Table(name = "t_role")
public class Role extends AbstractEntity<Integer> {

    private String code;

    private String name;

    public Role() {
    }

    public Role(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
